package com.ugoodtech.mdcc.core.repository;

import com.ugoodtech.mdcc.core.domain.ComplaintSolutionTimeOut;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.querydsl.QueryDslPredicateExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface ComplaintSolutionTimeOutRepository extends PagingAndSortingRepository<ComplaintSolutionTimeOut, Long>
        , QueryDslPredicateExecutor<ComplaintSolutionTimeOut> {

    @Query("from ComplaintSolutionTimeOut where solution_id=:solutionId")
    List<ComplaintSolutionTimeOut> findBySolutionId(@Param("solutionId") Long solutionId);

}
